package com.tencent.sr.iris.activity.common.config;

import com.google.common.collect.Maps;
import com.tencent.sr.tech.dynamic.config.spring.annotation.DynamicConfigObject;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.TimeUnit;

/**
 * 依赖接口配置七彩石配置
 *
 * @author xiaojun
 */
@Data
@Component
@DynamicConfigObject(key = "dependencyConfig")
public class DependencyConfig {

    private Map<String, Config> configs = Maps.newHashMap();

    @Data
    public static class Config {

        /**
         * 批量查询大小
         */
        private Integer batchSize = 100;

        /**
         * 批量查询大小
         */
        private Integer permitsPerSecond = 20;

    }


}
